﻿@model Whoever.Health.Website.Models.ContactViewModel

<h2>Crear contacto</h2>

<div class="row action-bar">
    @Action.Back()
</div>

<div class="row" data-bind="with: viewModel.Entity">
    @using (Html.BeginForm("Create", "Contact", FormMethod.Post, new { id = "create", @data_bind = "submit: viewModel.Create" }))
    {
        @Html.Partial("FieldsPartial", Model);
        
        <button data-bind="click: viewModel.Create" type="button" class="btn btn-action btn-full-width">@Html.LocalizedAction("Create")</button> 
    }
</div>
